package seven.rascontrol;

import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.EditText;

public class MenuProjetoActivity extends Activity implements OnClickListener {

	public Button but_Burndown;
	public Button but_Burnup;
	public Button but_Desempenho;
	public String resultado;
	Comunicacao comunicacao;
	public final int PROJETO_DIALOG = 0;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_projeto_layout);

		but_Burndown = (Button) findViewById(R.id.but_burnDown_menu);
		but_Burnup = (Button) findViewById(R.id.but_burnUp_menu);
		but_Desempenho = (Button) findViewById(R.id.but_Desempenho_menu);

		but_Burndown.setOnClickListener(this);
		but_Burnup.setOnClickListener(this);
		but_Desempenho.setOnClickListener(this);

		comunicacao = new Comunicacao();

	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.but_burnDown_menu:
			Intent int1 = new Intent(this, BurnDownActivity.class);
			startActivity(int1);
			break;
		case R.id.but_burnUp_menu:
			Intent int2 = new Intent(this, BurnUpActivity.class);
			startActivity(int2);
			break;
		case R.id.but_Desempenho_menu:
			onCreateDialog(0);
			Intent int3 = new Intent(this, DesempenhoEquipeActivity.class);
			startActivity(int3);
			break;
		default:
			break;
		}
	}

	@Override
	protected Dialog onCreateDialog(int id) {
		switch (id) {
		case PROJETO_DIALOG:
			startActivity(new Intent(this, Dialog_ProjetoActivity.class));
		}

		return null;

	}
}
